package com.glela.platform.model.request;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

public class RequestBaseModel implements Serializable {
	private static final long serialVersionUID = 8686812825295393804L;

	private ReqHeaderVo reqHeader;//请求头信息

	/** 注册用户Id */
	private Long	userId	= 0L;
	/** 匿名账号 */
	private String	guestId;
	private int		roleId;
	private Integer	status;
	private String	orderSn;
	/** 用户登录名称 */
	private String	userName;

	public RequestBaseModel() {
		super();
		reqHeader = new ReqHeaderVo();
	}

	/** 初始化请求头 */
	public void initHeader(HttpServletRequest request) {
		reqHeader = new ReqHeaderVo();
		reqHeader.setPhoneType(request.getHeader("phoneType"));
		reqHeader.setAppSystemVersion(request.getHeader("appSystemVersion"));
	}

	/** 用户id */
	public Long getUserId() {
		return userId;
	}

	/** 用户id */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getGuestId() {
		return guestId;
	}

	public void setGuestId(String guestId) {
		this.guestId = guestId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public ReqHeaderVo getReqHeader() {
		return reqHeader;
	}

}
